package com.ssy.lingxi.order.model.vo.basic.request;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 计算满额包邮的商品总运费请求参数
 * @author wyx
 * @version 2.0.0
 * @date 2022-03-14
 **/
public class OrderProductFreeFreightVO implements Serializable {
    private static final long serialVersionUID = -1201218169366908801L;

    /**
     * 收货地址id
     */
    @NotNull(message = "收货地址id不能为空")
    private Long receiverAddressId;

    /**
     * 订单商品集合
     */
    @Valid
    @NotEmpty(message = "订单商品集合不能为空")
    private List<ProductFreeFreightVO> productFreightDetailList;

    public Long getReceiverAddressId() {
        return receiverAddressId;
    }

    public void setReceiverAddressId(Long receiverAddressId) {
        this.receiverAddressId = receiverAddressId;
    }

    public List<ProductFreeFreightVO> getProductFreightDetailList() {
        return productFreightDetailList;
    }

    public void setProductFreightDetailList(List<ProductFreeFreightVO> productFreightDetailList) {
        this.productFreightDetailList = productFreightDetailList;
    }
}
